package cn.yunhe.exception;

import cn.yunhe.util.ErrorMessage;

/**
 * 自定义异常类 处理业务异常信息
 * Created by Administrator on 2017/8/3.
 */
public class ServiceException extends RuntimeException {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ErrorMessage errorMsg;
    public ServiceException(ErrorMessage errorMsg){
        this.errorMsg = errorMsg;
    }

    public ErrorMessage getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(ErrorMessage errorMsg) {
        this.errorMsg = errorMsg;
    }
}
